<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>王者荣耀竞猜管理平台</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/icon.css">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div align="center">
    <form id="ff" method="post" action="/warSituationInfo/update">
        <input type="hidden" name="fdId" value="${warSituationInfo.fdId}">
        <table cellpadding="5">
            <tr>
                <td>战局名称：</td>
                <td><input class="easyui-textbox" type="text" id="fdWarName" name="fdWarName"
                           value="${warSituationInfo.fdWarName}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>参战人数：</td>
                <td><input class="easyui-textbox" type="text" id="fdNum" name="fdNum" value="${warSituationInfo.fdNum}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>下注金额：</td>
                <td><input class="easyui-textbox" type="text" id="fdAmount" name="fdAmount"
                           value="${warSituationInfo.fdAmount}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>授权通道：</td>
                <td><input class="easyui-textbox" type="text" id="fdChannel" name="fdChannel"
                           value="${warSituationInfo.fdChannel}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>等待时间：</td>
                <td><input class="easyui-textbox" type="text" id="fdWaitTime" name="fdWaitTime"
                           value="${warSituationInfo.fdWaitTime}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>游戏计划开始时间：</td>
                <td><input class="easyui-datetimebox" name="fdStartTime"
                           data-options="required:true,showSeconds:true,editable:false"
                           value="${warSituationInfo.fdStartTime}"/>

            </tr>
            <tr>
                <td>房间号：</td>
                <td><input class="easyui-textbox" type="text" id="fdRoomNo" name="fdRoomNo"
                           value="${warSituationInfo.fdRoomNo}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>发布者：</td>
                <td><input class="easyui-textbox" type="text" id="fdCreateId" name="fdCreateId"
                           value="${warSituationInfo.fdCreateId}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>发布者截图：</td>
                <td><img src="${warSituationInfo.fdCreatePic}" height="150" width="80">
                </td>
            </tr>
            <tr>
                <td>发布者判定：</td>
                <td><input type="radio" name="fdCreateResult" data-options="required:true"
                           value="0" ${warSituationInfo.fdCreateResult == 0 ?'checked':''}/>发布者胜
                    <input type="radio" name="fdCreateResult" data-options="required:true"
                           value="1" ${warSituationInfo.fdCreateResult == 1 ?'checked':''}/>挑战者胜
                </td>
            </tr>
            <tr>
                <td>挑战者：</td>
                <td><input class="easyui-textbox" type="text" id="fdDareId" name="fdDareId"
                           value="${warSituationInfo.fdDareId}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>挑战者截图：</td>
                <td><img src="${warSituationInfo.fdDarePic}" height="150" width="80"></td>
            </tr>
            <tr>
                <td>挑战者判定：</td>
                <td><input type="radio" name="fdDareResult" data-options="required:true"
                           value="0" ${warSituationInfo.fdDareResult == 0 ?'checked':''}/>发布者胜
                    <input type="radio" name="fdDareResult" data-options="required:true"
                           value="1" ${warSituationInfo.fdDareResult == 1 ?'checked':''}/>挑战者胜
                </td>
            </tr>
            <tr>
                <td>发布者简介：</td>
                <td><input class="easyui-textbox" type="text" id="fdPublishDesc" name="fdPublishDesc"
                           value="${warSituationInfo.fdPublishDesc}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>挑战者简介：</td>
                <td><input class="easyui-textbox" type="text" id="fdDareDesc" name="fdDareDesc"
                           value="${warSituationInfo.fdDareDesc}"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>战局是否结束：</td>
                <td><input type="radio" name="fdIsEnd" data-options="required:true"
                           value="0" ${warSituationInfo.fdIsEnd == 0 ?'checked':''}/>未结束
                    <input type="radio" name="fdIsEnd" data-options="required:true"
                           value="1" ${warSituationInfo.fdIsEnd == 1 ?'checked':''}/>已结束
                </td>
            </tr>
            <tr>
                <td>是否结算：</td>
                <td><input type="radio" name="fdIsSettlement" data-options="required:true"
                           value="0" ${warSituationInfo.fdIsSettlement == 0 ?'checked':''}/>未结算
                    <input type="radio" name="fdIsSettlement" data-options="required:true"
                           value="1" ${warSituationInfo.fdIsSettlement == 1 ?'checked':''}/>已结算
                </td>
            </tr>
            <tr>
                <td>战局结果：</td>
                <td><input type="radio" name="fdResult" data-options="required:true"
                           value="0" ${warSituationInfo.fdResult == 0 ?'checked':''}/>战局未结束
                    <input type="radio" name="fdResult" data-options="required:true"
                           value="1" ${warSituationInfo.fdResult == 1 ?'checked':''}/>发布者胜
                    <input type="radio" name="fdResult" data-options="required:true"
                           value="2" ${warSituationInfo.fdResult == 2 ?'checked':''}/>挑战者胜
                    <input type="radio" name="fdResult" data-options="required:true"
                           value="-1" ${warSituationInfo.fdResult == -1 ?'checked':''}/>发布者缺席
                    <input type="radio" name="fdResult" data-options="required:true"
                           value="-2" ${warSituationInfo.fdResult == -2 ?'checked':''}/>挑战者缺席
                </td>
            </tr>
        </table>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
        <a href="javascript:void(0)" style="margin-left: 20px" class="easyui-linkbutton" onclick="clearForm()">重置</a>
    </div>
</div>
</body>
<script src="${pageContext.request.contextPath}/static/pages/warSituationInfo/edit.js"></script>
</html>
